#!/bin/bash
if [ $# -ne 2 ];
then
 echo "usage: CreateScript.sh <scriptname> <nof instances>"
 exit -1
fi

cd /home/vbild/Simulation/submit
for ((i=1;i<=$2;i++))
do
 awk -f CreateScript.awk this=$i < $1.sh > $1_$i.sh

 chmod a+x $1_$i.sh
done
